#pragma once
#include "LedButton.h"
#include "PubSub.h"
// CMeasureDlg dialog

class CMeasureDlg : public CDialog
{
	DECLARE_DYNAMIC(CMeasureDlg)
	CLedButton	m_led;
	CEdit	m_TraceWnd;
	bool m_MeasureStarted;
	CPubSub *m_PubSub;
public:
	CMeasureDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CMeasureDlg();
	void Trace(LPCTSTR szFmt, ...);
// Dialog Data
	enum { IDD = IDD_MEASURE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
public:
	afx_msg void OnBnClickedMeasure();
};
